A S Alam [Sun, 24 Jan 2021 22:42:04 +0000 (22:42 +0000)]
Update Punjabi translation
(cherry picked from commit
518331812eec46cc6cc999df010c31f7127fc9bf)
Efstathios Iosifidis [Sun, 24 Jan 2021 10:17:02 +0000 (10:17 +0000)]
Update Greek translation
(cherry picked from commit
281c17c400c4cebb1a5b0b0c8ab14d06ce4a4791)
Matthias Clasen [Sat, 23 Jan 2021 16:15:23 +0000 (16:15 +0000)]
Merge branch 'static-lib-for-tests' into 'master'
Static lib for tests
See merge request GNOME/gtk!3107
Matthias Clasen [Sat, 23 Jan 2021 03:50:42 +0000 (22:50 -0500)]
testsuite: Link some tests statically
Link tests for private apis statically.
Matthias Clasen [Sat, 23 Jan 2021 02:50:55 +0000 (21:50 -0500)]
Create a static library
Rearrange our build to create a libgtk.a for the the contents of gtk/,
and build libgtk-4.so from our per-subdirectory static libraries.
This will let us link tests statically for testing internal apis.
Matthias Clasen [Fri, 22 Jan 2021 20:08:54 +0000 (20:08 +0000)]
Merge branch 'lsan-leaks-2' into 'master'
Lsan leaks 2
See merge request GNOME/gtk!3106
Matthias Clasen [Fri, 22 Jan 2021 18:56:04 +0000 (13:56 -0500)]
Avoid a buffer overrun
We were putting the '\0' behind the end. Oops.
Matthias Clasen [Fri, 22 Jan 2021 18:32:41 +0000 (13:32 -0500)]
Tweak lsan suppressions
We don't use atk-bridge anymore, and we don't want
to see gio leaks.
Matthias Clasen [Fri, 22 Jan 2021 18:01:09 +0000 (13:01 -0500)]
ci: Don't print lsan suppressions
Printing these out breaks TAP output, and we really
aren't interested in them.
Matthias Clasen [Fri, 22 Jan 2021 16:50:04 +0000 (11:50 -0500)]
testsuite: Fix a leak
asan pointed out that the array tests leak.
Matthias Clasen [Fri, 22 Jan 2021 16:37:20 +0000 (11:37 -0500)]
Avoid a heap-use-after-free
_gtk_gesture_cancel_sequence frees the struct pointed to by data,
so don't write to it afterwards. Found by asan.
Danial Behzadi [Fri, 22 Jan 2021 14:57:52 +0000 (14:57 +0000)]
Update Persian translation
Matthias Clasen [Fri, 22 Jan 2021 12:30:22 +0000 (12:30 +0000)]
Merge branch 'lsan-leaks' into 'master'
Lsan leaks
See merge request GNOME/gtk!3104
Matthias Clasen [Fri, 22 Jan 2021 05:16:08 +0000 (05:16 +0000)]
Merge branch 'tests-without-diff' into 'master'
testsuite: Stop requiring diff
See merge request GNOME/gtk!3103
Matthias Clasen [Fri, 22 Jan 2021 05:13:13 +0000 (00:13 -0500)]
Force malloc of g_slices in asan build
Otherwise leaks could be missed.
Matthias Clasen [Fri, 22 Jan 2021 05:12:46 +0000 (00:12 -0500)]
Remove libc from leak suppression list
Every program starts in __libc_start_main, so this would suppress
everything. This doesn't happen in practice because asan by default
is unable to unwind the stack. Setting
ASAN_OPTIONS=fast_unwind_on_malloc=0,malloc_context_size=15 can unwind
the stack, and if malloc_context_size is large enough it will indeed
suppress everything.
Matthias Clasen [Fri, 22 Jan 2021 04:57:24 +0000 (23:57 -0500)]
testsuite: Stop requiring diff
Unify the many copies of diff_with_file in one source
file, and patch it to detect diff at runtime and fall
back to a simple strcmp if we don't have it. Make all
tests use this new testutils.c, and stop requiring
diff for building the tests.
This should let us allow to build on Windows with the
default value for -Dbuild-tests.
Matthias Clasen [Fri, 22 Jan 2021 03:43:33 +0000 (22:43 -0500)]
wayland: Explicitly announce ssd for kwin
Without this, kwin correctly assumes that we are
using client-side decorations. This is a port
of
32ae97f1 from GTK 3.24.
Fixes: #3609
Daniel Șerbănescu [Thu, 21 Jan 2021 19:27:47 +0000 (19:27 +0000)]
Update Romanian translation
Emmanuele Bassi [Thu, 21 Jan 2021 18:57:34 +0000 (18:57 +0000)]
Merge branch 'ebassi/lazier-a11y' into 'master'
Lazier accessibility
See merge request GNOME/gtk!3102
Yuri Chornoivan [Thu, 21 Jan 2021 18:23:25 +0000 (18:23 +0000)]
Update Ukrainian translation
Matthias Clasen [Thu, 21 Jan 2021 18:15:57 +0000 (18:15 +0000)]
Merge branch 'inspector-controllers' into 'master'
Inspector controllers
See merge request GNOME/gtk!3101
Emmanuele Bassi [Thu, 21 Jan 2021 16:39:22 +0000 (16:39 +0000)]
a11y: Make GtkATContext realization lazier
We only realize the ATContext on the top level, which will create an
GtkAtSpiRoot object and the corresponding GtkAtSpiCache object. Whenever
an AT connects to the accessibility bus, and asks for the various
objects, all the ATContext will be realized on demand.
Emmanuele Bassi [Thu, 21 Jan 2021 16:31:28 +0000 (16:31 +0000)]
a11y: Avoid signal emission during cache population
If we're responding to a request to get all the cached items, there's no
need to emit signals when adding an ATContext to the cache.
Matthias Clasen [Thu, 21 Jan 2021 05:31:00 +0000 (00:31 -0500)]
inspector: Redo the actions page
Don't create widgets in bind, instead just set
the new action on the action-editor, and let it
recreate the parts that need to be recreated.
Matthias Clasen [Thu, 21 Jan 2021 06:13:29 +0000 (01:13 -0500)]
inspector: Reshuffle action editor
Prepare the action editor for being able to change its
actions after creation.
Matthias Clasen [Thu, 21 Jan 2021 05:34:25 +0000 (00:34 -0500)]
inspector: Simplify action editor
We are not using the size group anymore, so drop it.
Matthias Clasen [Thu, 21 Jan 2021 05:03:16 +0000 (00:03 -0500)]
inspector: Split out variant editor
Matthias Clasen [Thu, 21 Jan 2021 00:27:38 +0000 (19:27 -0500)]
inspector: Redo the shortcuts page
Use a column view here.
Matthias Clasen [Wed, 20 Jan 2021 23:51:01 +0000 (18:51 -0500)]
inspector: Redo the controllers page
Use a column view, and only show the widgets own
controllers.
Matthias Clasen [Thu, 21 Jan 2021 04:22:13 +0000 (04:22 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Ebassi/for master
Closes #3607
See merge request GNOME/gtk!3100
Matthias Clasen [Wed, 20 Jan 2021 23:51:01 +0000 (18:51 -0500)]
inspector: Redo the controllers page
Use a column view, and only show the widgets own
controllers.
Emmanuele Bassi [Wed, 20 Jan 2021 19:10:54 +0000 (19:10 +0000)]
Abort if the shared memory pool cannot be created
If we cannot allocate memory, we cannot create any windowing system
surface. There's no coming back from that.
Fixes: #3607
Matthias Clasen [Wed, 20 Jan 2021 15:54:37 +0000 (15:54 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Update getting started section
Closes #3601
See merge request GNOME/gtk!3099
Emmanuele Bassi [Fri, 15 Jan 2021 14:21:20 +0000 (14:21 +0000)]
Add rename-to annotation for GtkListStore.insert_valuesv()
The vector-based variant should shadow the variadic arguments function
in bindings.
Emmanuele Bassi [Fri, 15 Jan 2021 14:20:51 +0000 (14:20 +0000)]
docs: Reformat GtkListStore.insert_values()
Emmanuele Bassi [Fri, 15 Jan 2021 14:20:09 +0000 (14:20 +0000)]
Add more directions to the issue templates
Let's hope people read them.
Matthias Clasen [Wed, 20 Jan 2021 13:01:54 +0000 (08:01 -0500)]
docs: Update getting started section
We were still talking about draw signals here,
which don't exist anymore.
Fixes: #3601
Matthias Clasen [Tue, 19 Jan 2021 21:24:04 +0000 (21:24 +0000)]
Merge branch 'treeview-sort-arrows' into 'master'
Redo arrow icons in various widgets
Closes #3577
See merge request GNOME/gtk!3097
Balázs Meskó [Tue, 19 Jan 2021 20:47:20 +0000 (20:47 +0000)]
Update Hungarian translation
Matthias Clasen [Tue, 19 Jan 2021 19:24:19 +0000 (14:24 -0500)]
columnview: Redo indicator arrows
Use the same approach as GtkTreeViewColumn for sort
indicators. Luckily, the same css works for both.
Matthias Clasen [Tue, 19 Jan 2021 19:00:21 +0000 (14:00 -0500)]
menbutton: Redo indicator arrows
Instead of hardcoding icon names in the widget, use
arrow.none, arrow.up, arrow.down, arrow.left, arrow.right
styles and set the icon to use with -gtk-icon-source. This
lets themes change the icons that are used here, without
forcing all uses of pan-up/down/start/end-symbolic to be
treated the same.
Document this in the menubutton CSS docs.
Matthias Clasen [Mon, 18 Jan 2021 21:11:57 +0000 (16:11 -0500)]
treeviewcolumn: Redo sort arrows
Instead of hardcoding icon names in the widget, use
sort-indicator.ascending and sort-indicator.descending styles
and set the icon to use with -gtk-icon-source. This lets themes
change the icon that is used here, without forcing all uses of
pan-up/down-symbolic to be treated the same.
Document this in the treeview CSS docs.
Fixes: #3577
Matthias Clasen [Tue, 19 Jan 2021 12:08:21 +0000 (12:08 +0000)]
Merge branch 'wip/kalev/dist-HighContrast-dark' into 'master'
dist: Fix css theme disting after HighContrast-dark changes
See merge request GNOME/gtk!3095
Matthias Clasen [Tue, 19 Jan 2021 11:56:54 +0000 (11:56 +0000)]
Merge branch 'issue-2436-gtk4' into 'master'
macOS: fix #2436 raise transient window on focus
Closes #2436
See merge request GNOME/gtk!3094
Matthias Clasen [Tue, 19 Jan 2021 11:43:58 +0000 (11:43 +0000)]
Merge branch 'wip/kalev/NEWS.pre-4.0' into 'master'
Split NEWS for pre-4.0 changes
See merge request GNOME/gtk!3096
Kalev Lember [Tue, 19 Jan 2021 09:46:13 +0000 (10:46 +0100)]
dist: Fix css theme disting after HighContrast-dark changes
Commit
f60d245e327a760a188e8b5a40844f5fe092df43 renamed it from
HighContrast-inverse.css to HighContrast-dark.css.
Kalev Lember [Tue, 19 Jan 2021 09:40:09 +0000 (10:40 +0100)]
Split NEWS for pre-4.0 changes
Similar to commit
87e9f0895b72540172884ff152b0957a39f4ee6d that did the
same for older releases, this commit splits out pre-4.0 changes to
separate NEWS.pre-4.0 file.
Thomas Holder [Tue, 19 Jan 2021 08:31:00 +0000 (09:31 +0100)]
macOS: fix #2436 raise transient window on focus
Ported from gtk-3-24
e278f3890540ad59eaccf32fd90fe49416e1f7f2
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2436
Matthias Clasen [Tue, 19 Jan 2021 04:48:26 +0000 (04:48 +0000)]
Merge branch 'version-bump' into 'master'
Version bump
See merge request GNOME/gtk!3093
Matthias Clasen [Mon, 11 Jan 2021 23:17:59 +0000 (18:17 -0500)]
Add version macros for 4.2
These will be needed for adding new API.
Matthias Clasen [Tue, 12 Jan 2021 00:00:04 +0000 (19:00 -0500)]
Bump version to 4.1
master is now open for 4.2 API additions.
Includes an update for the one test we have that
has the version number in its expected output.
Matthias Clasen [Tue, 19 Jan 2021 04:06:01 +0000 (04:06 +0000)]
Merge branch 'check_button_activate' into 'master'
Add activate signal to GtkCheckButton
Closes #3525 and #3550
See merge request GNOME/gtk!3012
Matthias Clasen [Tue, 19 Jan 2021 04:04:34 +0000 (04:04 +0000)]
Merge branch 'wip/jtojnar/fix-pc-vulcan' into 'master'
build: Use Meson’s module for building .pc files
Closes #3517
See merge request GNOME/gtk!3005
Matthias Clasen [Tue, 19 Jan 2021 03:23:57 +0000 (22:23 -0500)]
4.0.2
Matthias Clasen [Tue, 19 Jan 2021 02:09:10 +0000 (02:09 +0000)]
Merge branch 'fix-cell-renderer-toggle' into 'master'
cellrenderertoggle: Fix css node handling
Closes #3599
See merge request GNOME/gtk!3092
Matthias Clasen [Tue, 19 Jan 2021 01:52:59 +0000 (20:52 -0500)]
cellrenderertoggle: Fix css node handling
Commit
cbbbf44dd43ca608709 tried to replace
gtk_style_context_save_named with an explicit
css node to save to, but it failed, and the failure
was showing up as crashes in the inspector.
Fix by Benjamin Otte.
Fixes: #3599
Emmanuele Bassi [Mon, 18 Jan 2021 23:19:00 +0000 (23:19 +0000)]
Merge branch 'cherry-pick-gtk_file_chooser_set_current_name-fix-type' into 'master'
gtk_file_chooser_set_current_name: fix type of name argument
See merge request GNOME/gtk!3091
Thomas Holder [Fri, 5 Jun 2020 10:43:49 +0000 (12:43 +0200)]
gtk_file_chooser_set_current_name: fix type of name argument
The description says UTF-8 string, but the annotation said filename.
Cherry-picked from gtk-3-24
1573ff6803d9c7a41145d21d5fa640ddc493bad2
Matthias Clasen [Mon, 18 Jan 2021 14:40:02 +0000 (14:40 +0000)]
Merge branch 'doap-update' into 'master'
Update the gtk.doap file
See merge request GNOME/gtk!3088
Matthias Clasen [Mon, 18 Jan 2021 14:11:11 +0000 (09:11 -0500)]
Update the gtk.doap file
Add relevant people as maintainers.
Florentina Mușat [Mon, 18 Jan 2021 13:06:18 +0000 (13:06 +0000)]
Update Romanian translation
Chun-wei Fan [Mon, 18 Jan 2021 10:42:37 +0000 (10:42 +0000)]
Merge branch 'win32-remove-layered-windows' into 'master'
GDK/Win32: Remove layered windows usage
See merge request GNOME/gtk!2782
Chun-wei Fan [Thu, 5 Nov 2020 08:24:40 +0000 (16:24 +0800)]
GDK/Win32: Remove layered windows usage
In GTK4, we are now defaulting to the OpenGL renderer with the Cairo renderer
only used as a fallback, so there is no point keeping the code paths that use
layered windows as layered windows do not work well with OpenGL nor Vulkan.
Matthias Clasen [Sun, 17 Jan 2021 17:51:15 +0000 (17:51 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3437
See merge request GNOME/gtk!3087
Matthias Clasen [Sun, 17 Jan 2021 16:39:36 +0000 (11:39 -0500)]
aboutdialog: Fix initial focus
When GtkAboutDialog was changed to derive from
GtkWindow, it lost the initial focus handling that
GtkDialog has. Reinstate some of it.
Fixes: #3437
Matthias Clasen [Sun, 17 Jan 2021 15:55:53 +0000 (10:55 -0500)]
inspector: Avoid a critical
Avoid a critical when closing the inspector with the
recorder page open.
Matthias Clasen [Sun, 17 Jan 2021 14:20:13 +0000 (14:20 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Wip/baedert/for master
Closes #3593
See merge request GNOME/gtk!3086
Fabio Tomat [Sun, 17 Jan 2021 13:11:25 +0000 (13:11 +0000)]
Update Friulian translation
Piotr Drąg [Sun, 17 Jan 2021 11:38:17 +0000 (12:38 +0100)]
Update Polish translation
Timm Bäder [Sun, 17 Jan 2021 07:12:14 +0000 (08:12 +0100)]
widget: Fix gtk_widget_class_add_binding() argument name
Timm Bäder [Sun, 17 Jan 2021 07:11:42 +0000 (08:11 +0100)]
Add nullable annotations to GtkShortcutFunc
Fixes #3593
Matthias Clasen [Sun, 17 Jan 2021 05:23:22 +0000 (05:23 +0000)]
Merge branch 'surface-scale' into 'master'
Surface scale
Closes #3578
See merge request GNOME/gtk!3085
Timm Bäder [Mon, 11 Jan 2021 20:49:30 +0000 (21:49 +0100)]
gl renderer: Use rect_contains_rect() copy
And this way the contains_rect() inside
rounded_inner_rect_contains_rect() goes from 3.3% to 0.79% in the
fishbowl when rendering the levelbars.
Timm Bäder [Mon, 11 Jan 2021 19:04:15 +0000 (20:04 +0100)]
label: Remove unneeded NULL guards
The pointers passed to GtkWidgetClass::measure cannot be NULL
Timm Bäder [Mon, 11 Jan 2021 18:53:25 +0000 (19:53 +0100)]
label: Refactor get_layout_location
Make this function shorter, the parameters non-nullable and the simple
cases more explicit.
Timm Bäder [Sun, 10 Jan 2021 18:51:27 +0000 (19:51 +0100)]
gl renderer: Don't reset offset when drawing offscreen
Timm Bäder [Sun, 10 Jan 2021 18:21:12 +0000 (19:21 +0100)]
gl renderer: Properly y-flip non-offscreen children of rounded clips
Timm Bäder [Sun, 10 Jan 2021 09:12:08 +0000 (10:12 +0100)]
label: Fix a potential memory leak
This only happens in error cases so not very interesting. Anyway, try to
make scan-build happy.
Timm Bäder [Sat, 9 Jan 2021 14:58:56 +0000 (15:58 +0100)]
builderparser: Save finalizers in a GPtrArray
We get up to 370 of these when starting the widget-factory.
Timm Bäder [Sat, 9 Jan 2021 14:16:13 +0000 (15:16 +0100)]
widget: Shorten get_halign() a bit
Timm Bäder [Sat, 9 Jan 2021 14:07:21 +0000 (15:07 +0100)]
accessible: Fix memory leak if context is unset
Unref the acessible values
Timm Bäder [Wed, 6 Jan 2021 18:23:02 +0000 (19:23 +0100)]
builder: Use a GPtrArray when parsing signals
Timm Bäder [Wed, 6 Jan 2021 18:07:44 +0000 (19:07 +0100)]
builderparser: Keep properties in a GPtrArray
Timm Bäder [Wed, 6 Jan 2021 16:54:31 +0000 (17:54 +0100)]
builderparser: Only allocate subparser stack when needed
Out of the 3.3k possibly_finish_subparser calls when opening the
widget-factory, only 300 need one.
Matthias Clasen [Sat, 16 Jan 2021 20:36:44 +0000 (20:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Add details
See merge request GNOME/gtk!3084
Matthias Clasen [Sat, 16 Jan 2021 20:21:36 +0000 (15:21 -0500)]
x11: Notify on surface scale changes
Emit property notification when the surface scale
changes.
Matthias Clasen [Sat, 16 Jan 2021 20:17:08 +0000 (15:17 -0500)]
wayland: Notify on surface changes
When the width, height or scale of a surface changes,
emit property change notification.
Matthias Clasen [Sat, 16 Jan 2021 20:17:57 +0000 (15:17 -0500)]
native: Listen for scale changes
Connect to change notification for the surface
scale-factor property, and update the widgets
when it changes.
Fixes: #3578
Matthias Clasen [Sat, 16 Jan 2021 20:16:36 +0000 (15:16 -0500)]
surface: Add a scale-factor property
This will allow us to notify when the scale changes.
Matthias Clasen [Sat, 16 Jan 2021 19:45:20 +0000 (14:45 -0500)]
docs: Add details
Explain the difference between GtkPicture and GtkImage,
and when you might want to use which.
Yuri Chornoivan [Sat, 16 Jan 2021 18:44:30 +0000 (18:44 +0000)]
Update Ukrainian translation
Matthias Clasen [Sat, 16 Jan 2021 18:37:58 +0000 (18:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Add a legend for the layout overlay
See merge request GNOME/gtk!3083
Matthias Clasen [Sat, 16 Jan 2021 17:52:06 +0000 (12:52 -0500)]
docs: Remove a reference to configure events
Those don't exist anymore.
Matthias Clasen [Sat, 16 Jan 2021 17:38:24 +0000 (12:38 -0500)]
inspector: Add a legend for the layout overlay
Colors are more useful if you know what they represent.
Matthias Clasen [Sat, 16 Jan 2021 03:55:22 +0000 (03:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
overlaylayout: Set the child type in the class
See merge request GNOME/gtk!3082
Matthias Clasen [Sat, 16 Jan 2021 03:35:11 +0000 (22:35 -0500)]
overlaylayout: Set the child type in the class
We don't need to override create_layout_child here,
and setting the child type has the advantage that
the layout properties are showing up in the inspector.
Matthias Clasen [Sat, 16 Jan 2021 00:19:41 +0000 (00:19 +0000)]
Merge branch 'rtl-margins' into 'master'
Flip margin-start and -end in RTL
Closes #3583
See merge request GNOME/gtk!3081
Matthias Clasen [Fri, 15 Jan 2021 23:42:20 +0000 (18:42 -0500)]
Add a reftest for box flipping
Test that a horizontal box changes the order of its
children in RTL, and that widget margins flip start
and end.
This tests the fix in
d89ff7181941d202d2.
Matthias Clasen [Fri, 15 Jan 2021 19:56:21 +0000 (14:56 -0500)]
Flip margin-start and -end in RTL
We lost this at some point, but the widget margins
are still meant to be relative to the text direction.
Fixes: #3583